package DesignPatern.A06_代理模式.QXB.A01简单模式;

/**
 * @Author: Du
 * @Date: 2021/7/22 9:58
 */
public class GamePlayerProxy implements IGamePlayer
{
    private IGamePlayer gamePlayer = null;
    
    public GamePlayerProxy(IGamePlayer gamePlayer)
    {
        this.gamePlayer = gamePlayer;
    }
    
    @Override
    public void login()
    {
        System.out.println("代理登录");
        this.gamePlayer.login();
    }
    
    @Override
    public void killBoss()
    {
        System.out.println("代理杀BOSS");
        this.gamePlayer.killBoss();
    }
    
    @Override
    public void update()
    {
        System.out.println("代理升级");
        this.gamePlayer.update();
    }
}
